package com.guigu.www.cxk.controller;

import com.guigu.www.cxk.service.CXKSingleDayAppointmentService;
import com.guigu.www.pojo.SingleDayAppointment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

//预约时间表
@Controller
@RequestMapping("/ProDateAppointment")
public class CXKSingleDayAppointmentController {

    @Autowired
    CXKSingleDayAppointmentService service;

    /*时间查询*/
    @PostMapping
    @ResponseBody
    public List<SingleDayAppointment> DateAppointment(){
        return service.DateAppointment();
    }
}
